import axios from '../util/axios'

export function getWeather(params) {
    return axios.get('http://api.help.bj.cn/apis/weather/', {
        params
    })
}

export function getGeographicalLocation() {
    return axios.get('https://restapi.amap.com/v3/ip?output=json&key=c79aeb4171f72f162217f854cb1f296e')
}

export function getWeatherList(location) {
    return axios.get('https://apip.weatherdt.com/v2/plugin/data/web', {
        params: {
            key: 'fC04dLE9LV',
            location,
            lang: 'zh'
        }
    })
}